package org.dorm.learn;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * add description here
 *
 * @author : dormi330
 * @version : 1.0
 */
public class LoadProp {

    public static void main(String[] args) {
        try (InputStream input = LoadProp.class.getClassLoader().getResourceAsStream("load/load.properties")) {
            Properties prop = new Properties();

            // load a properties file
            prop.load(input);

            // get the property value and print it out
            System.out.println(prop.getProperty("a"));
            System.out.println(prop.getProperty("b"));
            System.out.println(prop.getProperty("c"));

        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
}
